package com.topgay.domain;

import java.io.Serializable;

public class FriendList implements Serializable{
	private int no;
	private String myId;
	private String friendId;
	
	public FriendList(){}
	
	public FriendList(int no, String myId, String friendId) {
		super();
		this.no = no;
		this.myId = myId;
		this.friendId = friendId;
	}

	public FriendList(String myId, String friendId) {
		super();
		this.myId = myId;
		this.friendId = friendId;
	}

	public int getNo() {
		return no;
	}

	public void setNo(int no) {
		this.no = no;
	}

	public String getMyId() {
		return myId;
	}

	public void setMyId(String myId) {
		this.myId = myId;
	}

	public String getFriendId() {
		return friendId;
	}

	public void setFriendId(String friendId) {
		this.friendId = friendId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((friendId == null) ? 0 : friendId.hashCode());
		result = prime * result + ((myId == null) ? 0 : myId.hashCode());
		result = prime * result + no;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		FriendList other = (FriendList) obj;
		if (friendId == null) {
			if (other.friendId != null)
				return false;
		} else if (!friendId.equals(other.friendId))
			return false;
		if (myId == null) {
			if (other.myId != null)
				return false;
		} else if (!myId.equals(other.myId))
			return false;
		if (no != other.no)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "FriendList [no=" + no + ", myId=" + myId + ", friendId="
				+ friendId + "]";
	}
	
	
	
	
}
